package request


type AlibabaBenefitQueryRequest struct {
    /*
        奖池编号     */
    Ename  *string `json:"ename" required:"true" `
    /*
        表示奖池类型（发奖奖池传1，抽奖传0）     */
    AwardType  *string `json:"award_type,omitempty" required:"false" `
    /*
        商家来源身份标识（"promotion-"+appId）     */
    AppName  *string `json:"app_name" required:"true" `
}

func (s *AlibabaBenefitQueryRequest) SetEname(v string) *AlibabaBenefitQueryRequest {
    s.Ename = &v
    return s
}
func (s *AlibabaBenefitQueryRequest) SetAwardType(v string) *AlibabaBenefitQueryRequest {
    s.AwardType = &v
    return s
}
func (s *AlibabaBenefitQueryRequest) SetAppName(v string) *AlibabaBenefitQueryRequest {
    s.AppName = &v
    return s
}

func (req *AlibabaBenefitQueryRequest) ToMap() map[string]interface{} {
    paramMap := make(map[string]interface{})
    if(req.Ename != nil) {
        paramMap["ename"] = *req.Ename
    }
    if(req.AwardType != nil) {
        paramMap["award_type"] = *req.AwardType
    }
    if(req.AppName != nil) {
        paramMap["app_name"] = *req.AppName
    }
    return paramMap
}

func (req *AlibabaBenefitQueryRequest) ToFileMap() map[string]interface{} {
    fileMap := make(map[string]interface{})
    return fileMap
}